package com.temp.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ChatMessageDTO {

    @NotNull(message = "apiMsg.IdNotNull")
    private Long senderId;

    @NotNull(message = "apiMsg.IdNotNull")
    private Long receiverId;

    @NotBlank(message = "apiMag.msgContent")
    @Length(max = 500, message = "apiMsg.msgContentLength,500")
    private String content;
}
